// 执行页面中包含的jsp
function renderReports(tabNum) {
	if ($.inArray(tabNum, hasRender) != -1) {
		return
	}
	hasRender.push(tabNum)
	
	if (tabNum == -1) {
		return
	}

	if (parentFunction && parentFunction.length != 0) {
		for (var i = 0, len = parentFunction[tabNum].length; i < len; i++) {
			try {
				if (request['test'] == 'true') console.log("公共文件:"+parentFunction[tabNum][i]+".js")
				eval(parentFunction[tabNum][i] + '()') // 执行配置的方法
			} catch (e) {

			}
		}
	}

	if (childFunction && childFunction.length != 0) {
		for (var i = 0, len = childFunction[tabNum].length; i < len; i++) {
			try {
				if (request['dev'] == 'true') {
					$('.urlTip').each(function () {
						if ($(this).text().indexOf(childFunction[tabNum][i] + '.jsp') != -1) {
							console.log('报表名称：' + $(this).prev().text()) // 打印sql语句
						}
					})
				}
				eval(childFunction[tabNum][i] + '()')
			} catch (e) {

			}
		}
	}

	userVisitLogger({
		tab: $("#tabs>ul>li").eq($("#tabs").tabs("option", "active")).attr("aria-controls"),
		href: document.location.href,
		trade: param.sqlidParam.trade_id,
		category_id: param.sqlidParam.category_id
	})
}